package com.baomidou.ant.service;

import com.baomidou.ant.entity.User;
import com.baomidou.ant.vo.Request.RequestRegisterVo;
import com.baomidou.ant.vo.Request.RequestUserListVo;
import com.baomidou.ant.vo.Response.ResponseUserListVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2021-03-24
 */
public interface IUserService extends IService<User> {
    //根据号码查询用户
    User queryByTel(String telephone);
    //根据昵称查询用户
    User queryByName(String userName);
    //注册
    void register(RequestRegisterVo requestRegisterVo);
    //分页查询用户信息
    IPage<ResponseUserListVo> userList(RequestUserListVo requestUserListVo);
    //上传用户头像
    String upload(MultipartFile file);
}
